#include<iostream>
#include<string.h>
using namespace std; 
int main()

{
	char s[100],ch[100];
	gets(s);
	int i=0,n=0;
	while(s[i]!='\0')
	{
		if(s[i]==','||s[i]=='.'||s[i]=='!'||s[i]=='?'||s[i]==' ')
		{
			i++;
			continue;
		}
		else
		{
			ch[n]=s[i];
			i++;
			n++;
		}
	}
	puts(ch);
	return 0;
}
